package com.cloud.api.clients;

import com.cloud.common.entity.po.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-service")
public interface UserClient {

    /* 测试1 */
    @GetMapping("/user/test")
    String test();

    /* 测试2 */
    @GetMapping("/user/testCloud")
    Result testCloud(@RequestParam("userName") String userName);

}
